import {
    get,
    post
} from "../utils/request"

//分页查询用户
export const getUserByPage = function (params) {
    return get('/user/getUserByPage', params)
}
//查询用户列表
export const getUserList = function (params) {
    return get('/user/getUserList', params)
}
// 查询用户信息中的角色列表
export const getRoleList = function (params) {
    return get('/user/getRoleList', params)
}
// 根据查询用户绑定的尾矿库信息
export const queryUserTailingPonds = function (params) {
    return get('/user/queryUserTailingPonds', params)
}
//新增用户
export const addUser = function (data) {
    return post('/user/addUser', data)
}
// 重绑监测体
export const bindTailingPond = function (params) {
    return post('/user/bindTailingPond', params)
}
//分页查询角色
export const getRoleByPage = function (params) {
    return get('/role/getRoleByPage', params)
}
// 角色查询尾矿库列表
export const getTailingPondList = function (params) {
    return get('/role/getTailingPondList', params)
}

// 查询权限数据
export const getRoleAuthorizations = function (params) {
    return get('/role/queryRoleAuthorizations', params)
}
// 为角色绑定权限
export const bindRoleAuthorization = function (data) {
    return post('/role/bindRoleAuthorization', data)
}